﻿@model Gman.WebApp.Models.BajaActivoModel

@{
    ViewBag.Title = "";

}

<script src="@Url.Content("~/Scripts/Binding/BajaActivo.js")" type="text/javascript"></script>

 <script type="text/javascript">
     var guid = "@( Model.ID.ToString())";
     var action = "@( Model.Action.ToString())";

     $(document).ready(function () {
         SetupControls();
         SetupActions();

         $("#AddBajaActivosDetalle").click(function () {
             LoadAddOrEditActivos(null);
         });
     });
     
</script>


<div style="margin-top: 5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight" style="height: 50px;">
            <b>Baja de Activos </b>
            @{ Html.RenderPartial("ToolBar", Model.ToolBar); }
        </div>
    </div>
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>
        <div class="DataBottomRight">
        </div>
    </div>
</div>


<div style="margin-top:5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight">
            <div class="DataTable">

                <fieldset>
                    <table width="100%">
                        <tr>
                            <td>
                                <div class="editor-label">
                                    N° de Guia de Salida
                                </div>
                            </td>
                            <td>
                                <div>
                                    @(Html.TextBoxFor(model => model.BajaActivo.NroGuiaSalida, new { style = "width: 60%;", propertyname = "BajaActivo.NroGuiaSalida", ID = "BajaActivo_CodBajaActivo" }))
                                    
                                    <img id="btnBuscar" src="../../_Images/Search-icon-16.png" alt="Buscar sede" style="cursor: pointer;" />
                                </div>                                  
                            </td>
                            <td>
                                
                            </td>
                            <td>
                                 
                            </td>
                         </tr>
                          
                    </table>
                </fieldset>
            </div>   
        </div>
    </div>    
    <div class="DataContent">
        <div class="DataContentRight" style="height: 500px;">
            <br />
            <b>Bajas </b> 
            <input id="AddBajaActivosDetalle" type="submit" value="Adicionar" style="float:right;"/>            
            <div id="ListaBajaActivosDetalleDiv">
             @{ Html.RenderPartial("ListaBajaActivoDetalle", Model); }
             </div>
        </div>
    </div>
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>           
        <div class="DataBottomRight">
        </div>
    </div>
</div>

<div id="BajaActivosDetallePopupDiv">
</div>
